﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UploadFiles.aspx.cs" Inherits="_UploadFiles" Title="上传文件" %>

<%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <table width="100%">
        <tr>
            <td style="height: 24px;">
                <asp:Button ID="btnReturn" runat="server" Text="返回" OnClick="btnReturn_Click" Width="88px" /></td>
        </tr>
        <tr>
            <td style="height: 1px; background-color: #E3E3E3;">
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="labelUploadContext" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td align="left" style="height: 32px;">
                <Upload:ProgressBar ID="progressBar1" runat="server" Inline="true" Width="100%" Height="32px">
                    <asp:Label ID="label" runat="server" Text="传输完成：" />
                </Upload:ProgressBar>
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <Upload:InputFile ID="inputFileId1" runat="server" />
                        <asp:Button ID="btnUpload1" runat="server" Text="上传" OnClick="btnUpload1_Click" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnUpload1" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td align="left" style="height: 24px;">
                <asp:Panel ID="panelUploadMulti" runat="server">
                    <table style="height: 100px;">
                        <tr>
                            <td valign="bottom">
                                <Upload:MultiFile ID="multiFileId2" runat="server" Width="100%">
                                    <asp:Button ID="multiFileButton" Text="添加文件..." Enabled="<%# multiFileId2.Enabled %>"
                                        runat="server" />
                                </Upload:MultiFile>
                            </td>
                            <td valign="bottom">
                                <asp:Button ID="btnUploadMulti" runat="server" Text="批量上传" OnClick="btnUploadMulti_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <pre id="uploadPre" runat="server" />
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td style="height: 1px; background-color: #E3E3E3;">
            </td>
        </tr>
        <tr>
            <td style="height: 24px;">
                <asp:Button ID="btnReturn2" runat="server" Text="返回" OnClick="btnReturn_Click" Width="92px" /></td>
        </tr>
    </table>
</asp:Content>
